<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="zyRoomList" fitColumns="false" title="影厅管理" actionUrl="zyRoomController.do?datagrid" idField="id" fit="true" queryMode="group" sortName="roomCinema.name" sortOrder="desc" autoLoadData="false">
			<t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
			<t:dgCol title="所属影院"  field="roomCinema.name"    queryMode="single" query="true" width="120"></t:dgCol>
			<t:dgCol title="影厅号"  field="roomNum"  query="true"  queryMode="single"  width="120"></t:dgCol>
			<t:dgCol title="座位数"  field="seatNum"    queryMode="single"  width="120"></t:dgCol>
			<t:dgCol title="银幕类型"  field="screenType"    queryMode="single"  width="120" dictionary="<%=StaticValue.DIC_SCREEN_TYPE %>"></t:dgCol>
			<t:dgCol title="银幕增益"  field="screenPlus"    queryMode="single"  width="120" formatter="js_toFixed"></t:dgCol>
			<t:dgCol title="宽银幕宽"  field="screenWidth"    queryMode="single"  width="120" formatter="js_toFixed"></t:dgCol>
			<t:dgCol title="宽银幕高"  field="screenHight"    queryMode="single"  width="120" formatter="js_toFixed"></t:dgCol>
			<t:dgCol title="遮幅幕宽"  field="curtainWidth"    queryMode="single"  width="120" formatter="js_toFixed"></t:dgCol>
			<t:dgCol title="遮幅幕高"  field="curtainHight"    queryMode="single"  width="120" formatter="js_toFixed"></t:dgCol>
			<t:dgCol title="放映距离"  field="showKm"    queryMode="single"  width="120" formatter="js_toFixed"></t:dgCol>
			<t:dgCol title="宽银幕镜头比"  field="screenLensRatio"    queryMode="single"  width="120" formatter="js_toFixed"></t:dgCol>
			<t:dgCol title="遮幅镜头比"  field="curtainLensRatio"    queryMode="single"  width="120" formatter="js_toFixed"></t:dgCol>
			<t:dgCol title="放映间特殊情况"  field="roomSpecialCase"    queryMode="single"  width="120"></t:dgCol>
			
			<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
			<t:dgDelOpt operationCode="roomDel" title="删除" url="zyRoomController.do?dologicDel&id={id}" />
			<t:dgToolBar operationCode="roomAdd" title="录入" icon="icon-add" width="940" height="270" url="zyRoomController.do?goAdd" funname="add"></t:dgToolBar>
			<t:dgToolBar operationCode="roomEdit" title="编辑" icon="icon-edit" width="940" height="270" url="zyRoomController.do?goUpdate" funname="update"></t:dgToolBar>
			<t:dgToolBar operationCode="roomSearch" title="查看" icon="icon-search" width="940" height="270" url="zyRoomController.do?goView" funname="goView"></t:dgToolBar>
			<t:dgToolBar operationCode="roomPut" title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
		</t:datagrid>
	</div>
</div>
<script type="text/javascript">
function js_toFixed(value){
	return value.substring(0,value.indexOf('.') + 3);
}
//导入
function ImportXls() {
	createdetailwindow('基础数据导入', 'uploadHallController.do?uploadFile',470,150)
}
function goView(title,url,datagridName,width,height){
	var datas = $("#zyRoomList").datagrid("getSelections");
	if(datas.length != 1){
		tip("请选择一项查看");
		return;
	}
	var id = datas[0].id;
	createdetailwindow(title,url+"&id="+id,width,height);
}
</script>